<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>练习</title>
</head>

<style>
    #p1 {
        color: green
    }

    .c1 {
        color: blue
    }

    h1, h2 {
        background-color: yellow
    }

    input[type=password] {
        background-color: red
    }

    * {
        border: 1px solid red
    }
</style>

<body>
<ul>
    <li id="p1">张学友</li>
    <li class="c1">刘德华</li>
    <li>郭富城</li>
</ul>

<h1 class="c1">悟空</h1>
<h1>沙僧</h1>
<h1>八戒</h1>

<h2>刘备</h2>

账号: <input type="text"><br>
密码: <input type="password">
</body>
</html>